integral of a squared function is zero